package com.hhp.cloud.shop.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * 菜单管理
 * 
 * @author hhp
 * @email 2437579794@qq.com
 * @date 2021-11-23 10:25:33
 */
@Data
@TableName("sys_menu")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class MenuEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	/**
	 * 菜单名称
	 */
	private String name;
	/**
	 * 父菜单ID
	 */
	private Long parentId;
	/**
	 * 路由路径
	 */
	private String path;
	/**
	 * 组件路径
	 */
	private String component;
	/**
	 * 菜单图标
	 */
	private String icon;
	/**
	 * 排序
	 */
	private Integer sort;
	/**
	 * 状态：0-禁用 1-开启
	 */
	private Integer visible;
	/**
	 * 跳转路径
	 */
	private String redirect;
	/**
	 * 创建时间
	 */
	private Date gmtCreate;
	/**
	 * 更新时间
	 */
	private Date gmtModified;

	@TableField(exist = false)
	private List<String> roles;

	@TableField(exist = false)
	/*private List<Map<String, Object>> perms;*/
	private List<PermissionEntity> perms;
}
